﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace BIZ
{
   public class ScriptKit
    {
        #region  
       /// <summary>
        /// 页面上写 JavaScript 脚本
       /// </summary>
       /// <param name="script"></param>
        public static void WriteScript(string script)
        {
            if (null != HttpContext.Current)
            {
                HttpContext.Current.Response.Write("<script language=\"javascript\">");
                HttpContext.Current.Response.Write(script);
                HttpContext.Current.Response.Write("</script>");
            }
        }
        #endregion
    }
}
